package view;
import view.ProductView;
import view.OrderView;
import view.UserView;
import view.EmployeeView;
import java.util.Scanner;

import java.util.Scanner;

public class guanliView {
    public static void guanliMenu() {
        while (true) {
            System.out.println("1. 管理产品");
            System.out.println("2. 管理订单");
            System.out.println("3. 管理用户");
            System.out.println("4. 管理员工");
            System.out.println("5. 退出");
            System.out.print("Choose an option: ");

            int option = new Scanner(System.in).nextInt();
            switch (option) {
                case 1:
                    ProductView.displayMenu();
                    break;
                case 2:
                    OrderView.displayMenu();
                    break;
                case 3:
                    UserView.displayMenu();
                    break;
                case 4:
                    EmployeeView.displayMenu(); // 新增
                    break;
                case 5:
                    return;
                default:
                    System.out.println("Invalid option. Please try again.");
            }
        }
    }
}
